@import '~ng-devui/styles-var/devui-var.scss';

.menu-list-wrapper.devui-scrollbar {
  margin: 0 !important;
  border-radius: $devui-border-radius-card;

  .menu-lists {
    background: $devui-base-bg;
    padding: 12px 20px;

    .menu-list {

      .menu-list-title {
        line-height: 36px;
      }

      .menu-sublist-item:not(:last-child) {
        margin-bottom: 8px;
      }

      .menu-list-title {
        font-size: $devui-font-size;
        font-weight: $devui-font-title-weight;
      }

      .menu-sublist {
        line-height: 36px;
        .menu-sublist-item {
          border-radius: 20px;
          padding: 8px 12px;
          margin-left: -12px;
          a {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;

            .menu-sublist-title,
            .menu-sublist-description {
              width: 100%;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }

            .menu-sublist-title {
              font-size: $devui-font-size;
              font-weight: $devui-font-title-weight;
              line-height: 22px;
              color: $devui-text;
              transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
              margin-bottom: 4px;
            }

            .menu-sublist-description {
              font-size: $devui-font-size;
              color: $devui-aide-text;
              line-height: 20px;
            }
          }
          &:hover {
            background-color: $devui-list-item-hover-bg;
          }
        }
      }
    }
  }
  .menu-lists.menu-lists-specifications {
    padding: 20px;
    padding-top: 0;
    .menu-list {
      .menu-list-title {
        font-size: $devui-font-size-sm;
        line-height: 20px;
        margin-bottom: 8px;
        margin-top: 20px;
      }
      .menu-sublist {
        .menu-sublist-item {
          a {
            .menu-sublist-title{
              font-size: $devui-font-size;
              font-weight: $devui-font-content-weight;
              margin-bottom: 0;
            }
          }

        }
        .menu-sublist-item:not(:last-child) {
          margin-bottom: 4px;
        }
      }
    }
  }
}


.header-menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  .header-menu-item {
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    .logo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      margin-bottom: 2px;
      border-radius: $devui-border-radius-card;
      transition: all $devui-animation-duration-base $devui-animation-ease-in-out-smooth;

      &:hover {
        background: $devui-base-bg;
        box-shadow: $devui-shadow-length-base $devui-light-shadow;
      }
    }

    &.menu-selected-item .logo {
      background: $devui-base-bg;
      box-shadow: $devui-shadow-length-base $devui-light-shadow;
    }

    .text {
      color: $devui-aide-text;
      font-size: $devui-font-size-sm;
      line-height: 20px;
      width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
    }
    a,
    & > div {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
    }
  }
}

.menu-ecology-container {
  display: flex;
}
.ecology-icon-container {
  display: flex;
  align-items: center;
}
.ecology-desc-container {
  margin-left: 8px;
}

@media (max-width: 767px) {
  .header-menu-container {
    display: none;
  }
}

.mobile-menu-wrapper {
  display: flex;
  align-items: center;

  .logo {
    display: flex;
    margin-left: 12px;
    margin-right: 12px;
  }
}

:host ::ng-deep .devui-accordion-item-title .devui-accordion-splitter {
  border-left: none !important;
  &::before {
    display: none !important;
  }
}

:host ::ng-deep .devui-accordion-item-title {
  padding-left: 12px !important;
  border-radius: $devui-border-radius-full;
}

:host ::ng-deep .devui-accordion-item-title:not(.disabled).devui-router-active {
  background: $devui-list-item-active-bg;
  a {
    color: $devui-list-item-active-text !important;
  }
}

:host ::ng-deep .devui-accordion-item-title:not(.disabled):hover {
  background: $devui-list-item-hover-bg;
}

:host ::ng-deep d-accordion-item-hreflink.devui-accordion-item-title > a {
  padding: 0 0 0 0 !important;
}

:host ::ng-deep .devui-accordion-item:not(:first-child) {
  margin-top: 8px;
}

:host ::ng-deep .devui-accordion-submenu {
  margin-top: 8px;
}